package com.lyl.springcloud.service.impl;

import com.lyl.springcloud.mapper.PaymentMapper;
import com.lyl.springcloud.model.Payment;
import com.lyl.springcloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lylbell
 * @date 2021-05-25 15:10
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    //@Resource:java自带的，@Autowired:spring提供的
    @Resource
    PaymentMapper paymentMapper;

    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    public Payment getPaymenyById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
